package com.xh.jf_blog.service.impl;

import com.xh.jf_blog.bean.Website;
import com.xh.jf_blog.mapper.WebsiteMapper;
import com.xh.jf_blog.service.WebsiteService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author PangJunjie
 * @Date 2024/2/2/002
 */
@Service
@Transactional
public class WebsiteServiceImpl implements WebsiteService {
    @Autowired
    private WebsiteMapper websiteMapper;

    public Website getInfo() {
        return websiteMapper.selectByPrimaryKey(1);
    }

    public void update(Website website) {
        websiteMapper.updateByPrimaryKeySelective(website);
    }
}
